网卡多队列

REF

http://www.ywnds.com/?p=4380

简单命令

推荐使用较新的 Linux 发行版(如 CentOS 7.2)配置网卡多队列。

这里以 CentOS 7.2 为例介绍如何配置网卡多队列,假设是 2 个队列,网卡 interface 名称为 eth0。

查看网卡是否支持多队列。运行命令:ethtool -l eth0。

设置网卡当前使用多队列。运行命令:ethtool -L eth0 combined 2。

对于有多个网卡的用户,可以对多个网卡分别进行设置:

  [root@localhost ~]# ethtool -l eth0
  Channel parameters for eth0:
  Pre-set maximums:
  RX:        0
  TX:        0
  Other:        0
  Combined:    2       # 这一行表示最多支持设置2个队列
  Current hardware settings:
  RX:        0
  TX:        0
  Other:        0
  Combined:    1     #表示当前生效的是1个队列
  [root@localhost ~]# ethtool -L eth0 combined 2    # 设置eth0当前使用2个队列
posted @ 2017-12-15 19:27  苏小北1024  阅读(1981)  评论(0编辑  收藏  举报